#pragma once
#include <vector>
#include <cstdint>
#include <deque>
#include "data_seq.h"

namespace eintik::data::scan {

struct DScan
{
    DScan();

    void add_frame(const std::vector<int16_t> &frame, int id_beam, int32_t tick_enc);
    std::vector<uint8_t> frame_d(int w, int pad4);
    std::pair<double, double> range();

private:
    std::deque<PosFrame> dq;
    std::deque<PosFrame> dq_prev;
};

}